package com.vehicle.ucenter.provider.mapper;

import com.vehicle.common.service.dao.CrudDao;
import com.vehicle.ucenter.api.entity.SysUser;
import org.apache.ibatis.annotations.Param;

/**
 * Created by yantingbin on 2017/7/14.
 */
public interface SysUserMapper extends CrudDao<SysUser> {
    /**
     * 根据用户名和密码查询用户数据
     * @param userName
     * @return
     */
    SysUser getByUserNameAndPwd(String userName);

    /**
     * 修改用户信息
     * @param user
     * @return
     */
    int updateInfo(SysUser user);

    /**
     * 根据用户的邮箱查询当前的用户
     * @param email
     * @return
     */
    SysUser getByUserEmail(String email);
}
